const studentDao = require('../dao/studentDao');

module.exports.insert = async function(student){
    return await studentDao.insert(student);
}

module.exports.find = async function(page,searchParams){
    return await studentDao.find(page,searchParams);
}

module.exports.findById = async function(id){
    return await studentDao.findById(id);
}

module.exports.delete = async function(id){
    return await studentDao.delete(id);
}

module.exports.update = async function(student){
    return await studentDao.update(student);
}
